package com.lotusfall.service;

import com.lotusfall.api.ApiRoleService;
import com.lotusfall.pojo.Role;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService {
    @DubboReference(version ="1.0")
    private ApiRoleService apiRoleService;

    public List<Role> listRoleByUserid(Long id) {
        return this.apiRoleService.listRoleByUserid(id);
    }
}
